package net.lab1024.sa.admin.module.business.yct.yctproductinstructions.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.yct.yctproductinstructions.domain.entity.YctProductInstructionsEntity;
import net.lab1024.sa.admin.module.business.yct.yctproductinstructions.domain.form.YctProductInstructionsQueryForm;
import net.lab1024.sa.admin.module.business.yct.yctproductinstructions.domain.vo.YctProductInstructionsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 易齿通产品说明书 Dao
 *
 * @Author zhangben
 * @Date 2024-09-11 14:23:05
 * @Copyright yct
 */

@Mapper
@Component
public interface YctProductInstructionsDao extends BaseMapper<YctProductInstructionsEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<YctProductInstructionsVO> queryPage(Page page, @Param("queryForm") YctProductInstructionsQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("instructionsId")Long instructionsId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

    List<YctProductInstructionsVO> queryPageList(Page page, @Param("queryForm") YctProductInstructionsQueryForm queryForm);

    List<YctProductInstructionsVO> selectTypeList();
}
